package com.uni.support.em;

public enum BalanceLogType {
	SHIPPING(1,"寄件"),
	PIECE(0,"派件"),
	WITHDRAW(2,"提现"),
	TOPPING(3,"置顶"),
	
	SHOPPING(4,"购物"),
	WITHDRAW_REFUND(5,"提现退款"),
	SHIPPING_REFUND(6,"寄件退款"),
	SHOPPING_REFUND(7,"购物退款"),
	;
	
	private int type;
	private String desc;
	
	private BalanceLogType(int type,String desc) {
		this.type = type;
		this.desc = desc;
	}
	
	public static BalanceLogType getByType(int status) {
		for(BalanceLogType aoo : BalanceLogType.values()) {
			if(aoo.type == status) {
				return aoo;
			}
		}
		return null;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}
}
